package com.loubobooo.personal.blog.service;

import com.loubobooo.personal.blog.entity.User;
import com.loubobooo.personal.blog.entity.vo.UserVO;

import java.util.List;

public interface UserService {
    public List<UserVO> listUser() ;

    //根据id查询用户信息
    public UserVO getUserById(Integer id);

    //修改用户信息
    public void updateUser(User user);

    //删除用户
    public void deleteUser(Integer id) ;

    //添加用户
    public void insertUser(User user);

    // 验证登录名账号和密码
    public User login(String username, String password);

    //根据用户名和Email查询用户
    public User getUserByNameOrEmail(String name, String email);

    //根据用户名和Email查询用户数量
    public Integer getCountByNameOrEmail(String name, String email);

}
